<%@page import="session.TokenGenerator"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>表单重复提交</title>
</head>
<body>
	<form action="<%=request.getContextPath()%>/tokenValidate" method="post">
		<!-- 将Token放入Session和隐藏域 -->
		<input type="hidden" name="TOKEN_IN_HIDDEN" value="<%=TokenGenerator.getInstance().saveTokenInSession(request)%>">
		Name <input type="text" name="username" /> &nbsp;&nbsp;&nbsp;&nbsp;
		<input type="submit" value="Submit" />
	</form>
</body>
</html>